<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1 th:text="Login"></h1>
<p th:if="${param.error}" style="color: red">
    用户名或密码错误
</p>
<form th:action="@{/login}" method="post">
    <label>
        <input name="username" placeholder="请输入用户名"/>
    </label>
    <label>
        <input name="password" placeholder="请输入密码"/>
    </label>
    <input type="submit" value="登录">
</form>
</body>
</html>